<script setup lang="ts">
defineProps<{
  count: number
}>()
defineEmits<{
  (e: 'update:count', value: number): void
}>()
</script>

<template>
  <div>
    组件: {{ count }}
    <button @click="$emit('update:count', count + 1)">+1</button>
  </div>
</template>

<style lang="scss" scoped></style>
